package com.jt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data //set/get/toString方法只会重写自己的属性,不会添加父级的属性
@Accessors(chain = true) //链式加载规则
@NoArgsConstructor
@AllArgsConstructor
public class User {
	private Integer id;
	private String name;
	private Integer age;
	private String sex;

	//@Accessors 重写了set方法
}
